import cv2

file_path = r'.\resources\red_panda.jpg'
out_path = r'.\src\t1\gray_panda.jpg'

image = cv2.imread(in_path)
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.imwrite(out_path, gray_image)